// Copyright 2022 a.o.smith ALL Rights Reserved
package com.liuxinlong.modules.dao.impl;

import com.liuxinlong.modules.dao.PatentDao;
import com.liuxinlong.modules.entity.Patent;
import com.liuxinlong.modules.mapper.PatentMapper;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * 类描述
 * <p>
 * 此类关联设计的功能
 *
 * @author liuxinlong@hotwater.com.cn
 * @version 1.0.0
 * @since 2023年9月7日
 */
@Service
public class PatentDaoImpl extends ServiceImpl<PatentMapper, Patent> implements PatentDao {

	@Override
	public List<Patent> pagePatentList(Map<String, Object> queryParam) {
		return baseMapper.pagePatentList(queryParam);
	}

	@Override
	public int getPatentCount(Map<String, Object> queryParam) {
		return baseMapper.getPatentCount(queryParam);
	}

	@Override
	public Map<String, Object> getUserPatentCount(String userId) {
		return baseMapper.getUserPatentCount(userId);
	}

	@Override
	public Map<String, Object> getDepartmentPatentCount(String departmentId) {
		return baseMapper.getDepartmentPatentCount(departmentId);
	}

	@Override
	public Map<String, Object> getDepartmentSetPatentCount(Set<String> departmentIdSet) {
		return baseMapper.getDepartmentSetPatentCount(departmentIdSet);
	}

	@Override
	public Map<String, Object> getCampaignPatentCount() {
		return baseMapper.getCampaignPatentCount();
	}

	@Override
	public Map<String, Map<String, String>> getPatentMap() {
		return baseMapper.getPatentMap();
	}

	@Override
	public List<Map<String, Object>> queryApplyChartData(Map<String, Object> queryParam) {
		return baseMapper.queryApplyChartData(queryParam);
	}

	@Override
	public List<Map<String, Object>> queryAnnounceChartData(Map<String, Object> queryParam) {
		return baseMapper.queryAnnounceChartData(queryParam);
	}

	@Override
	public List<Map<String, Object>> queryDepChartData(Map<String, Object> queryParam) {
		return baseMapper.queryDepChartData(queryParam);
	}

	@Override
	public int countDepartmentPatent(String departmentId) {
		return baseMapper.countDepartmentPatent(departmentId);
	}
}
